//
//  ClubTopicModel.swift
//  77Club
//
//  Created by Apple on 2024/12/25.
//

import UIKit

//MARK: =============广场话题=============
struct ClubSquareTopicListModel: Convertible  {

    var code: Int           = 0
    var message: String     = ""
    var data: [ClubSquareTopicModel]?
    var subject: ClubSquareTopicInfoModel?
}

struct ClubSquareTopicModel: Convertible  {
    
    var subject_id = ""
    /// type 1 动态  0 社区帖子
    var type = 0
    var primary_id = ""
    var time = 0
    var data: ClubSquareTopicDataModel?
}

struct ClubSquareTopicDataModel: Convertible {

    /// 动态ID
    var id = ""
    /// 是否点赞
    var is_zan = false
    /// 发布内容
    var content = ""
    /// 话题
    var huati:[String] = []
    /// 图片，优先判断视频
    var img:[String] = []
    /// 视频
    var video = ""
    /// 时间
    var time = ""
    /// 查看人数
    var look = ""
    /// 评论数
    var pinglun = ""
    /// 点赞数
    var zan = ""
    /// 是否推荐
    var is_best = ""
    /// 头像
    var face = ""
    /// 昵称
    var pet_name = ""
    /// 会员图标
    var huiyuan_img = ""
    /// 头像框
    var head_frame = ""
    /// 勋章
    var medal:String = ""
    /// 颜色
    var color:[String] = []
    var videoImage:UIImage!
    var note = ""
    var note_type = 0
    var title = ""
    var uid_des = ""
    
/////////////////////////////////// 推荐游戏用
    ///
    var gid = ""
    /// 游戏图标
    var icon = ""
    /// 图片
//    var image = ""
    /// 游戏名称
    var name = ""
    /// 评分
    var point = ""
    /// 游戏大小 top11位置
    var size = ""
    
    var system_type = ""
    /// 推荐指数
    var tuijianzhishu = 0.0
    /// 分类
    var type = ""
    
    var isRecommend = false
    //关联话题
    var subjects: [DynamicSubjectsModel]?
    //关联游戏
    var games: [DynamicGamesModel]?
    //关联帖子
    var bbss: [DynamicPostModel]?
    
    var webview_url = ""
    var share_url = ""
    var uid = ""
    var itemSize: CGSize = .zero
    var content_h5 = ""
    var fabu = ""
    var good = ""
    var is_good = false
    var image:[String] = []
}

struct ClubSquareTopicInfoModel: Convertible  {
    
    var id = ""
    var name = ""
    var sort = 0
    var status = 0
    var views = ""
    var createtime = ""
    var desc = ""
}

struct ClubSquareSettingModel: Convertible  {
    
    var title = ""
    var content = ""
    var logo = ""
    var bgImg = ""
    var isBan = false
}

//论坛成员model
struct ClubForumMemberModel: Convertible  {
    
    var user_id = ""
    var name = ""
    var pet_name = ""
    var face = ""
    // role 1 管理员
    var role = 0
    var gid = ""
    var is_ban = 0
    var createtime = ""
}

//管理员权限model
struct ClubForumAdminModel: Convertible  {
    
    var name = ""
    var is_sel = true
}


//管理员权限model
struct ClubForumAdminPermModel: Convertible  {
    
    var id = ""
    var uid = ""
    var gid = ""
    var role = ""
    var perm_ban = 0
    var perm_top = 0
    var perm_off = 0
    var perm_notice = 0
    var perm_guanzhu = 0
}


struct ClubForumDetailModel: Convertible  {
    
    var id = ""
    var uid = ""
    var title = ""
    //1、游戏 2、话题 3、帖子
    var type = 0
}
